﻿@model BYSJ.Web.Models.Share
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/base.cshtml";
}
@section TitleSection{
   共享中心
}
@section  JsSection{
<link href="~/Content/share.css" rel="stylesheet" />
<script src="~/Scripts/shard.js"></script>
}
@section filedown{
 <div class="main-share">
     @*老师推荐*@
     <div class="left-share">
         <p>老师推荐</p>
       
             @if(Model.fileTh.Count > 0)
             {
                 foreach (var item in Model.fileTh)
                 {
                   <div style="height:40px;margin-left:10px;">
         <a href="@item.url" style="display:inline-block;">@item.name</a></div>
                 }
             }
         <div style="height:40px;margin-left:10px;">
             <a href="/oneself/@Model.name">我要分享</a>
             </div>
         </div>
     @*资源列表*@
     <div class="reft-share">
         <p>资源列表</p>
         <h5 class="doc_right_p">共 @Model.contt 个资源</h5>
         <ul>
             @if (Model.Files.Count > 0)
             {
                 foreach (var item in Model.Files)
                 {
                    <li>
                        <a href="@item.FileUrl">@item.FileName</a>
                        <span class="span1">@item.username</span><span>@item.FilecreatTime</span>
                    </li>
                 }
             }
         </ul>
         <div class="fenye">
             <a class="next-page">下一页</a>
             <input type="hidden" value="@Model.name" />
             <span>第<i> @Model.page </i>页--</span>
              &nbsp;&nbsp;
             <span>共有<i> @Model.pages </i>页</span>
              页跳转到：<input type="text" id="pageNow" name="pageNow">
             <input type="button" class="go" value="go">
         </div>
     </div>
    </div>
 }
